package liangtWorkSpace.proxy.cglib.callback;

import net.sf.cglib.proxy.CallbackFilter;

import java.lang.reflect.Method;

/**
 * @ClassName CallBackFilterTest
 * @Description : 功能说明
 * @Author : LiangT
 * @Date : 2020/4/12 16:57
 */
public class CallBackFilterTest implements CallbackFilter {

    @Override
    public int accept(Method method) {
        String name = method.getName();
        if ("save".equals(name)){

            return 0;
        }
        return 1;
    }
}
